#ifndef __USER_BT_CALL_H
#define __USER_BT_CALL_H

#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
//#include "driver_codec.h"
#include "app_at.h"
#include "fr_watch.h"
typedef struct 
{
    uint8_t num_len;
    uint8_t num[15];


}user_bt_call_t;

//0：呼出，1：接通，2：静音，3：通话结束
//4：拨出失败，5：来电显示
typedef enum
{
    HF_ENUM_OUTGOING = 0,
    HF_ENUM_CALL_CONNECTING = 1,    
    HF_ENUM_INCOMING = 5,
}call_enum_state_t;

//mic mute
enum{
    ENUM_MIC_CLOSE,
    ENUM_MIC_OPEN,
};

extern void    bt_hf_call_outgoing(uint8_t *number, uint8_t len);

extern void    bt_hf_call_hangup(void);
extern void    bt_hf_call_answer(void);
extern void    user_bt_set_calling_num(const char *num, uint8_t len);
extern void    user_set_call_mode(uint8_t mode);
extern uint8_t user_get_call_mode(void);
extern void    user_bt_get_calling_info(call_info_t * call);

extern void    user_bt_callsetup_handle(uint8_t hf_callsetup);
extern void    user_bt_hfcall_handle(uint8_t hf_call);

extern void    user_bt_hf_mic_mute(bool mute);

extern void    user_bt_timer_call_init(void);
extern void    user_bt_hf_mic_mute(bool mute);

extern void    user_bt_hf_set_volume(uint8_t lev);

#endif  /*  __USER_BT_CALL_H  */
